from random import *
# randint(1,33)
for i in range(8):
    try:
        str = [randint(1,33)]
    except:
        print("出问题了{}".format(str))
    print(str,end='')

ls=input("\n输入8个1-33之间的数用逗号隔开：")
ls.split(",")
print(ls,end='')
cont=0
for i in range(8):
    if str[i]==ls[i]:
        cont+=1

print(cont)